import Vue from 'vue';
import VueRouter from 'vue-router';

// 处理路由跳转会报错的问题
const originalPush = VueRouter.prototype.push;

VueRouter.prototype.push = function push(...rest) {
  return originalPush.apply(this, rest).catch(err => err)
}

Vue.use(VueRouter);

const routes = [
]

const router = new VueRouter({
  routes
})

export default router